home *** CD-ROM | disk | FTP | other *** search
/ Internet.Works 40 / Issue 40.iso / pc / PCSoftware / HTML Tool 3.5 / htmltool.exe / _SETUP.1 / Check MIMEs.scp < prev    next >
Encoding:
Text File  |  2000-03-06  |  765 b   |  30 lines

  1. <HTMLtool>Check for installed MIME types</HTMLtool>
  2.  
  3. <!-- ONE STEP TO INSTALL CHECK MIMES:
  4.  
  5.    1.  Add the specified coding into the BODY of your HTML document  -->
  6.  
  7. <!-- STEP TWO: Put this code into the BODY of your HTML document  -->
  8.  
  9. <BODY>
  10.  
  11. <CENTER>
  12. <SCRIPT LANGUAGE="JavaScript">
  13.  
  14. <!-- Begin
  15. document.writeln("<TABLE BORDER=1><TR VALIGN=TOP>",
  16. "<TH ALIGN=left>i",
  17. "<TH ALIGN=left>type",
  18. "<TH ALIGN=left>description",
  19. "<TH ALIGN=left>suffixes</TR>")
  20. for (i=0; i < navigator.mimeTypes.length; i++) {
  21. document.writeln("<TR VALIGN=TOP><TD>",i,
  22. "<TD>",navigator.mimeTypes[i].type,
  23. "<TD>",navigator.mimeTypes[i].description,
  24. "<TD>",navigator.mimeTypes[i].suffixes,
  25. "</TR>")
  26.   }
  27. document.writeln("</TABLE>")
  28. // End -->
  29. </SCRIPT>
  30. </CENTER>